package com.cskaoyan.market.service;

import com.cskaoyan.market.bo.GoodsCombineBo;
import com.cskaoyan.market.db.domain.MarketGoods;
import com.cskaoyan.market.db.domain.MarketGoodsAttribute;
import com.cskaoyan.market.db.domain.MarketGoodsProduct;
import com.cskaoyan.market.db.domain.MarketGoodsSpecification;

import java.util.List;
import java.util.Map;

public interface AdminGoodsService {
    List<MarketGoods> list(String page, String limit, String goodsSn, String name, String sort, String order, String goodsId);

    boolean delete(String id);

    Map<String, Object> detail(String id);

    Map<String, Object> catAndBrand();

    void update(GoodsCombineBo goodsCombineBo);

    boolean create(MarketGoods goods, List<MarketGoodsAttribute> attributes, List<MarketGoodsSpecification> specifications, List<MarketGoodsProduct> products);
}
